The largest publishing company in the world is implementing measures to safeguard its books and authors from infringement by artificial intelligence.